package com.realtyManage.springboot.Service.impl;

import com.realtyManage.springboot.Model.Do.PanicBuy;
import com.realtyManage.springboot.Service.IPanicBuyService;
import com.realtyManage.springboot.Dao.PanicBuyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * 抢购
 *
 * @Author 杭州素色网络科技有限公司
 * @Date 2019/08/02
 **/
@Service
@Transactional
public class PanicBuyServiceImpl implements IPanicBuyService {
    @Autowired
    private PanicBuyRepository panicBuyRepository;

   @Override
    public PanicBuy save(PanicBuy panicBuy) {
        return panicBuyRepository.save(panicBuy);
    }

    @Override
    public int updateIsShow(Integer hid){
       return panicBuyRepository.updateIsShow(hid);
    }


}
